home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-01 | 880 b | 26 lines | [TEXT/MMCC] |
- // Prototypes for the Dialog utils
- void InitDialogUPPs(void);
- pascal Boolean StdKeyFilter(DialogPtr dptr, EventRecord *event, short *item);
- pascal Boolean NumFilter(DialogPtr dptr, EventRecord *myDialogEvent, short *item);
- void IBeamIt(WindowPtr dwind);
- void ShortToDlog(short val, DialogPtr dptr, short item);
- short DlogToShort(DialogPtr dptr, short itmnum);
- pascal void BtnItem(DialogPtr dptr, short item);
- ControlHandle SnatchHandle(DialogPtr thebox, short theGetItem);
- Boolean InRange(DialogPtr thebox, short theItem, short min, short max);
-
- // Standard Items
- #define iOKButton 1
- #define iCancelButton 2
- #define iOKOutline 3
-
- // Key constants
- #define kReturnKey 0x0D
- #define kEnterKey 0x03
- #define kEscKey 0x1B
- #define kLastCntrlKey 0x1F
- #define kDeleteKey 0x7F
- #define kTabKey 0x09
-
- // The out of range alert in the app
- #define kRangeAlert 134